#!/usr/bin/env python 
# -*- coding: utf-8 -*-
# @Time    : 2022/10/5 11:13
# @Author  : Junzhao
# @File    : admin.py
# @Software: PyCharm
from 作业.权限.privileges import Privileges
from 作业.管理员.用户 import User


class Admin(User):
    def __init__(self, first_name, last_name, age, _privileges):
        super().__init__(first_name, last_name, age)
        self.privileges = Privileges(_privileges)
        pass

    def show_privileges(self):
        self.privileges.show_privileges()
        pass


privileges = "can add post", "can delete post", "can ban users"
B = Admin("junzhao", "bai", "20", privileges)
B.greet_user()
B.describe_user()
